<?php use_stylesheet('teams.css') ?>

<div id="teams">
<table class="teams">
	<thead>
		 <tr>
       <th>Id</th>
	   <th>User</th>
	   <th>Team 1</th>
	   <th>Score</th>
	   <th>Team 2</th>
	</thead>
  <tbody>
    <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
      <td><?php echo $pronos_p1_pronos->getId() ?></td>
	  <td><?php echo $pronos_p1_pronos->getUser()->getUsername().' ('.$pronos_p1_pronos->getUserId().')' ?></td>
	  <td><?php echo $pronos_p1_pronos->getPronosP1Match()->getTeam1()->getCode() ?></td>
      <td><?php echo $pronos_p1_pronos->getScore1().' - '.$pronos_p1_pronos->getScore2() ?></td>
	  <td><?php echo $pronos_p1_pronos->getPronosP1Match()->getTeam2()->getCode() ?></td>      
      
      <!--td><?php echo $pronos_p1_pronos->getCreatedAt() ?></td>
      <td><?php echo $pronos_p1_pronos->getUpdatedAt() ?></td-->
    </tr>
  </tbody>
</table>

<hr />

<a href="<?php echo url_for('p1pronos/index') ?>">List</a>
</div>